// 组织架构的数据获取
import request from '@/utils/request'
export const companyDepartment = () => {
  return request({
    url: '/company/department'
  })
}
// 获取弹框负责人列表
export const sysUserSimple = () => {
  return request({
    url: '/sys/user/simple'
  })
}
// 新增部门接口
export const companyDepartmentAdd = (data) => {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 删除部门接口
export const companyDepartmentDel = (id) => {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}
// 修改接口
export const companyDepartmentEdit = (data) => {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data
  })
}
